package cn.neusoft.mapper;

import cn.neusoft.domain.Allocate;
import cn.neusoft.query.AllocationQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AllocationMapper {
    void addAllocate(Allocate allocate);
    void deleteByAllocateId(@Param("allocate_id") String allocate_id);

    void updateAllocate(Allocate allocate);
    Allocate findByAllocateId(String allocate_id);


    List<Allocate> findByCondition(AllocationQuery query);

    List<Allocate> findAllByCondition(AllocationQuery query);

    List<Allocate> findReturnedAllocate(AllocationQuery query);

    List<Allocate> findReturnedAllocate2(AllocationQuery query);
}
